/** 
 * DefaultReportFactory.java Created by iweerarathna on Aug 31, 2011.
 * 
 * Copyright (c) 2011 Virtusa Corporation. All Rights Reserved.<br><br>. 
 * 
 */
package org.uim.cricket.analyzer.report;

/**
 * TODO Class description goes here.
 * @version 
 * @author iweerarathna
 */
public class DefaultReportFactory extends AbstractReportFactory {

    @Override
    public MatchReportable createReport(String type) throws Exception {
        if (type.equalsIgnoreCase("xml")) {
            return new XMLMatchReporter();
        }
        throw new Exception("Unknown reporting type '" + type + "'!");
    }

}
